import request from '@/utils/request'

// 查询操作日志列表
export function listTradelog(query) {
  return request({
    url: '/kakabl/tradelog/list',
    method: 'get',
    params: query
  })
}

// 查询操作日志详细
export function getTradelog(id) {
  return request({
    url: '/kakabl/tradelog/' + id,
    method: 'get'
  })
}

// 新增操作日志
export function addTradelog(data) {
  return request({
    url: '/kakabl/tradelog',
    method: 'post',
    data: data
  })
}

// 修改操作日志
export function updateTradelog(data) {
  return request({
    url: '/kakabl/tradelog',
    method: 'put',
    data: data
  })
}

// 删除操作日志
export function delTradelog(id) {
  return request({
    url: '/kakabl/tradelog/' + id,
    method: 'delete'
  })
}
